package edu.ynu.se.xiecheng.achitectureclass.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
import java.util.List;

/**
 * 温室大棚DTO
 * 用于传输温室大棚信息及其关联的设备信息
 */
@Data
@ApiModel(description = "温室大棚信息")
public class GreenhouseDTO {
    
    @ApiModelProperty(value = "大棚ID")
    private Long id;
    
    @ApiModelProperty(value = "大棚名称", example = "1号大棚")
    private String name;
    
    @ApiModelProperty(value = "大棚位置", example = "东区A1")
    private String location;
    
    @ApiModelProperty(value = "大棚面积(平方米)", example = "100")
    private Double area;
    
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    
    @ApiModelProperty(value = "关联的设备列表")
    private List<DeviceDTO> devices;
    
    @ApiModelProperty(value = "设备总数")
    private Integer deviceCount;
    
    @ApiModelProperty(value = "在线设备数")
    private Integer onlineDeviceCount;
} 